const snabbdom = require('snabbdom');

const { h } = snabbdom;
// console.log(h);

const vnode = h("div#container.two.classes", { on: { click: ()=>{} } }, [
    h("span", { style: { fontWeight: "bold" } }, "This is bold"),
    " and this is just normal text",
    // props 是标签上的组件以及传递的props
    h("a", { props: { href: "/foo" } }, "I'll take you places!"),
]);

console.log(vnode);